﻿#ifndef SALESWOMAN_H
#define SALESWOMAN_H

#include "../../include/iservice.h"

class CSaleswoman : public IService
{
    Q_OBJECT
public:
    static CSaleswoman* GetInstance() { static CSaleswoman __instance; return &__instance; }
public:
    CSaleswoman();
    virtual ~CSaleswoman();
    virtual int Init();
    virtual int UnInit();
    virtual int SetFramework(IFramework* pFrm);
    virtual int PostThreadMsg(int nType, QString data);

private:
    QThread     m_thread;
    IFramework  *m_pFramework;
    ILogger     *m_pLogger;
    IConfig     *m_pConfig;
    INetComm    *m_pNetComm;
    ICommon     *m_pCommon;
signals:
    void sigPostTrdMsg(int nType, QString msg);
private slots:
    void slotGetTrdMsg(int nType, QString msg);
};

#endif // SALESWOMAN_H
